//
//  AllShop.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/8.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "AllShop.h"

@interface AllShop ()


- (IBAction)selectBtnClick:(id)sender;
//去结算方法
- (IBAction)gotoPay:(id)sender;
@end

@implementation AllShop



- (IBAction)selectBtnClick:(id)sender {
    if (self.a == 0) {
        [self.delegate myselectAll];
        self.a = 1;
        [self.selectBtn setBackgroundImage:[UIImage imageNamed:@"goodSelected.png"] forState:UIControlStateNormal];
    }else
    {
        [self.delegate mynotselectAll];
        self.a = 0;
        [self.selectBtn setBackgroundImage:[UIImage imageNamed:@"goodNotSelected.png"] forState:UIControlStateNormal];
    }
    
}
//去结算方法
- (IBAction)gotoPay:(id)sender {
    [self.delegate changeViewController];
}

+ (instancetype)footView {
    return [[[NSBundle mainBundle]loadNibNamed:@"AllShop" owner:nil options:nil]lastObject];
}
@end
